import 'package:flutter/material.dart';

import 'package:junyeyishu/utils/utils.dart';
import 'package:junyeyishu/widgets/QGWidget.dart';

class QGEmpty extends StatelessWidget {
  String content;
  bool isExpanded;
  QGEmpty({super.key, this.content = "当前暂无内容", this.isExpanded = true});

  Widget build(BuildContext context) {
    var column = Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        SizedBox(width: kScreenWidth),
        QGImage(asset: "nodata"),
        Text(
          content,
          style: TextStyle(
              color: const Color(0xff999999),
              fontSize: 13.rpx,
              fontWeight: FontWeight.normal),
        ),
      ],
    );
    return isExpanded ? Expanded(child: column) : column;
  }
}
